<template>
  <section>
    <van-sticky>
      <PageHeader title="会员管理" />
    </van-sticky>

    <van-tabs v-model="type" sticky @click="onTabChange">
      <van-tab title="会员管理" name="member"></van-tab>
      <van-tab title="交友申请" name="friend_apply"></van-tab>
      <van-tab title="投诉管理" name="complaint">

      </van-tab>
    </van-tabs>

  </section>
</template>

<script>
import PageHeader from "../../componets/PageHeader";

export default {
  components: {
    PageHeader
  },
  data() {
    return {
      type: 'complaint'
    }
  },
  methods: {
    onTabChange(name) {
      if(name == 'friend_apply') {
        this.$router.replace({name: 'MemberFriendApplyLists'});
      } else if(name == 'member') {
        this.$router.replace({name: 'MemberLists'});
      }
    },
  },
  mounted: function () {

  }
}
</script>

<style scoped>

</style>
